
var prefix = ctx + "water";
var id = [[${id}]];
var vm =  new Vue({
    el:"#app",
    data:{
        list:[1,2,3,4],
        orderEntity :[],
        userEntity :[],
        orderItemEntity :[{}]
    },
    created: function () {
            $.ajax({
                url: prefix + "/orderItem/" + id,
                type: "post",
                dataType: "json",
                success: function (data) {
                    vm.orderEntity = data.orderEntity;
                    vm.userEntity = data.userEntity;
                    vm.orderItemEntity = data.orderItemEntity;
                    console.log(vm);
                    console.log(vm.orderEntity);

                }, error: function (data) {
                    console.error("加载失败！！")
                }
            });
    }
});